@charset "utf-8";
.left {
    float: left;
}

.right {
    float: right;
}

body {
    font: 12px/1.5 arial, "\5FAE\8F6F\96C5\9ED1", sans-serif;
    background: #f3f4f6;
}

// 最顶部nav
#top-nav {
    background-color: #2e2e2e;
    color: #9f9f9f;
    height: 30px;
    line-height: 30px;
    i {
        font-style: normal;
        margin: 0 10px;
        color: #303034;
    }
    a {
        color: #9f9f9f;
    }
    .top-nav {
        width: 1190px;
        margin: 0 auto;
        .top-left {
            i {
                @extend .left;
            }
            height: 30px;
            @extend .left;
            a {
                @extend .left;
                .top-img {
                    background: url(../images/indexico.png);
                    background-position: -42px -823px;
                    margin: 7px 3px 0 0;
                    width: 11px;
                    height: 16px;
                    @extend .left;
                }
                &:hover {
                    text-decoration: underline;
                }
            }
        }
        .top-right {
            @extend .right;
            width: 600px;
            i {
                @extend .right;
            }
            div {
                @extend .right;
            }
            .order a:hover,
            .personal a:hover {
                text-decoration: underline;
                cursor: pointer;
            }
            .unlogin,
            .logined {
                a:hover {
                    color: red;
                }
            }
        }
    }
}

// 搜索nav
#search-nav {
    background: url(../images/cont-index.jpg);
    background-position: 0px -30px;
    .search-nav {
        width: 1190px;
        height: 96px;
        margin: 0 auto;
        .logobox {
            margin: 37px 0 0;
            width: 280px;
            height: 52px;
            margin-top: 23px;
            a {
                width: 280px;
                height: 55px;
                display: block;
                background: url(../images/navico.png) no-repeat;
                background-position: -670px -5px;
            }
        }
        .logogame {
            margin-top: 10px;
            width: 200px;
            height: 82px;
            a {
                width: 200px;
                height: 82px;
                display: block;
                position: relative;
                img {
                    display: block;
                    width: 200px;
                    height: 82px;
                }
                img:hover {
                    width: 230px;
                    height: 130px;
                    position: absolute;
                    top: -15px;
                    left: -15px;
                    z-index: 1;
                }
            }
        }
    }
}

// 主导航栏
#main-nav {
    background-color: #2e2e2e;
    .main-nav {
        width: 1190px;
        margin: 0 auto;
        height: 76px;
        position: relative;
        ul {
            width: 940px;
            height: 76px;
            position: relative;
            overflow: hidden;
            .nav-item {
                float: left;
                width: 134px;
                height: 76px;
                background: url(../images/navico.png) no-repeat;
                background-position: 152px 76px;
                a {
                    width: 134px;
                    height: 76px;
                    display: block;
                    text-align: center;
                    line-height: 76px;
                    font-size: 18px;
                    color: #9f9f9f;
                    position: relative;
                }
                a:hover {
                    color: #ff5900;
                }
            }
            .current {
                background-position: -275px -5px;
                a {
                    font-weight: bold;
                    color: #fef7ec!important;
                    text-shadow: 1px 3px 3px #bf4d00;
                }
            }
        }
        .nav-cart {
            width: 192px;
            height: 76px;
            line-height: 76px;
            text-align: center;
            font-size: 18px;
            position: relative;
            .btn-cart {
                width: 192px;
                color: #ff5900;
                text-indent: 18px;
                i {
                    position: absolute;
                    top: 0;
                    right: 15px;
                    z-index: 10;
                    width: 60px;
                    height: 76px;
                    line-height: 76px;
                    text-align: center;
                    font-size: 18px;
                    display: block;
                    overflow: hidden;
                    text-indent: 0;
                }
                s {
                    position: absolute;
                    top: 26px;
                    left: 36px;
                    z-index: 10;
                    width: 28px;
                    height: 24px;
                    background: url(../images/navico.png);
                    background-position: -237px -5px;
                    display: block;
                }
            }
        }
    }
}